package com.example.demo.controller;

import com.example.demo.common.convention.result.Result;
import com.example.demo.common.convention.result.Results;
import com.example.demo.dto.request.UserRegisterReq;
import com.example.demo.service.AccountService;
import com.example.demo.service.QRCodeService;
import jakarta.servlet.http.HttpServletRequest;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/api/account")
@RequiredArgsConstructor
public class AccountController {


    private final AccountService accountService;


    @PostMapping("/register")
    public Result<Void> register(@RequestBody UserRegisterReq req){
        accountService.register(req);
        return Results.success();
    }
}
